package org.ww.authserver.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.ww.authserver.dto.WeiboAccessTokenResponseDto;
import org.ww.authserver.vo.UserLoginVo;
import org.ww.authserver.vo.UserRegistVo;
import org.ww.common.utils.R;

/**
 * @program: gmall
 * @description: 用户
 * @author: ww
 * @create: 2024-05-09 17:40
 **/

@FeignClient("gmall-member")
public interface MemberFeiginClient {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegistVo dto);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo dto);

    @PostMapping("/member/member/oauth2/weibo/login")
    R weiboLogin(@RequestBody WeiboAccessTokenResponseDto dto);

}
